package com.zxq.common.middleware.gateway;

import com.zxq.common.middleware.lock.StoreKey;

public interface RedisLockGateway {


  boolean compareAndSet(StoreKey key, String oldValue, String newValue, int expireTime);

  boolean compareAndDelete(StoreKey key, String value);

  String get(StoreKey key);

  boolean exists(StoreKey key);

  boolean setNx(StoreKey key, String value, int leaseTime);
}
